package com.tinyseed.emcp.api.basicdata.service;

import com.tinyseed.emcp.api.basicdata.domain.Organize;
import com.tinyseed.emcp.api.basicdata.model.OrganizeInputDTO;
import com.tinyseed.emcp.api.basicdata.model.OrganizeOutputDTO;
import com.tinyseed.hmxx.admin.system.domain.Dept;

import java.util.List;

public interface OrganizeService {

    List<OrganizeOutputDTO> getOptionList();

    List<OrganizeOutputDTO> getOptionList(Long id);

    List<OrganizeOutputDTO> getList();

    List<OrganizeOutputDTO> getOrganizeIdListByid(Long parentId);

    OrganizeOutputDTO getDataById(Long parentId);

    String getOrganizeParent(String name);

    Integer deleteById(Long id);

    void save(OrganizeInputDTO organizeInputDTO);

    //根据组织结构查找Dept
    List<Dept> findDeptByOrganize(Long organizeId);

    //添加部门
    void addDept(Long organizeId,List<Long> deptId);

    //删除部门
    Organize removeDept(Long deptId);


    List<OrganizeOutputDTO> findOrganzeBydept(Long deptid);
}
